package com.xros.demo.fileserver.utils;

import org.apache.logging.log4j.Logger;

/**
 * @Author: mzp
 * @Description: log4j工具类
 * @Date: 2024/1/30 17:32
 * @Version: 1.0
 */
public final class Log4jUtils {


    public static void logMethodExp(Logger log, Class<?> clz, String methodName, Exception e){

        log.error("类：\"{}\"执行方法：\"{}\"时出现异常！异常的Class类型为：{}\r\n异常的message为：{}", clz, methodName, e.getClass().getName(), e.getMessage());

    }
}
